package com.cc.flyingfish;

import com.cc.flyingfish.websocket.WebSocketService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;

/**
 * @author CHENCHEN
 * @title
 * @createTime 2023-03-12 18:33
 */
@EnableDiscoveryClient
@SpringBootApplication
public class DanMuApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(DanMuApplication.class, args);
        WebSocketService.setApplicationContext(applicationContext);
    }
}
